﻿<UserControl x:Class="UCOLOR.View.MainFrame"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1000">
    <DockPanel LastChildFill="True">
        <Grid DockPanel.Dock="Top" Name="Top" Background="#FF349FC3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="30*"></ColumnDefinition>
                <ColumnDefinition Width="50*"></ColumnDefinition>
                <ColumnDefinition Width="30*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="40"></RowDefinition>
            </Grid.RowDefinitions>
            <Image Name="logo" Grid.Row="0" Grid.Column="0" Source=".\pic\market 039.jpg" HorizontalAlignment="left" Stretch="None" Margin="2,2,2,2"></Image>
            <StackPanel Name="toolbar" Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" >
                <Button Name="btnHome" Content="HOME" Margin="10" Width="80" Background="#FF594184" Foreground="White"></Button>
                <Button Name="btnFile" Content="文件" Margin="10" Width="80" Background="#FF594184" Foreground="White"></Button>
                <Button Name="btn3" Content="购物车" Margin="10" Width="80" Background="#FF594184" Foreground="White"></Button>
                <Button Name="btn4" Content="用户中心" Margin="10" Width="80" Background="#FF594184" Foreground="White"></Button>
            </StackPanel>    
            <TextBox Name="tbSearch" Grid.Row="1" Grid.Column="2" Text="搜索" HorizontalAlignment="Right" VerticalAlignment="Center" Width="120" Margin="10"></TextBox>
        </Grid>
        <Grid DockPanel.Dock="Bottom" Name="Bottom"> 
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="20*"></ColumnDefinition>
                <ColumnDefinition Width="60*"></ColumnDefinition>
                <ColumnDefinition Width="20*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="40"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Grid.Background>
        </Grid>
        <Grid Name="Center" Background="#FFDCC8C8">
            
        </Grid>
    </DockPanel>
</UserControl>
